void (int lbraceStart, int lbraceEnd) { showScopeHint(lbraceStart, lbraceEnd, offset -> { if (!(myPsiFile instanceof PsiPlainTextFile) && myPsiFile.isValid()) { return BraceMatchingUtil.getBraceMatcher(getFileTypeByOffset(offset), PsiUtilCore .getLanguageAtOffset(myPsiFile, offset)).getCodeConstructStart(myPsiFile, offset); } return offset; }); }