class CommentUtil {

    public static void blockCommentOrUncomment(JTextArea scriptPanel) {
        if (scriptPanel.getSelectedText() != null) {
            if (alreadyBlockCommented(scriptPanel)) {
                blockUncomment(scriptPanel);
            } else {
                blockComment(scriptPanel);
            }
        }
    }

}