Result (Expression @NotNull [] params, ExpressionContext context, boolean quick) { Editor editor = context.getEditor(); Language language = editor == null ? null : PsiUtilBase.getLanguageInEditor(editor, context.getProject()); Commenter commenter = language == null ? null : LanguageCommenters.INSTANCE.forLanguage(language); String lineCommentPrefix = commenter == null ? null : myCommenterFunction.apply(commenter); return lineCommentPrefix == null ? null : new TextResult(lineCommentPrefix.trim()); }