package org.jetbrains.javafx.formatter; import com.intellij.psi.tree.IElementType; import com.intellij.psi.tree.TokenSet; import org.jetbrains.javafx.lang.lexer.JavaFxTokenTypes; /** * Created by IntelliJ IDEA. * * @author Alexey.Ivanov */ class JavaFxFormattingUtil { private static final TokenSet BRACES = TokenSet.create(JavaFxTokenTypes.LBRACE, JavaFxTokenTypes.RBRACE, JavaFxTokenTypes.LBRACK, JavaFxTokenTypes.RBRACK); private JavaFxFormattingUtil() { } public static boolean isBrace(final IElementType childType) { return BRACES.contains(childType); } }