25262728293031
doVisitLabeledStatement(labeledStatement, nextLabeledStatement); } } private boolean getInSpockClass(GrLabeledStatement labeledStatement) { return new SpockClassCheck(labeledStatement.getContainingFile()).getIsSpockClass(); }
34353637383940414243
if (element instanceof PsiComment) { return false; } return new SpockClassCheck(element).getIsSpockClass(); } return false; }
16171819202122
spockPsiElementVisitor = new SpockPsiElementVisitor(); } @Override public boolean suitableForFile(@NotNull PsiFile file) { return file instanceof GroovyFile && new SpockClassCheck(file).getIsSpockClass(); }