boolean (@NotNull PsiFile file, @NotNull Editor editor) { int startOffset = CompletionInitializationContext.calcStartOffset(editor.getCaretModel().getCurrentCaret()); return JavaCompletionContributor.semicolonNeeded(file, startOffset); }