void (@NotNull PsiElement element) { super.visitElement(element); if (element instanceof PsiMethodReferenceExpression) { GlobalCompilingVisitor.addFilesToSearchForGivenWord("::", true, CODE, myCompilingVisitor.getContext()); } else if (element instanceof PsiLambdaExpression) { GlobalCompilingVisitor.addFilesToSearchForGivenWord("->", true, CODE, myCompilingVisitor.getContext()); } else if (element instanceof PsiKeyword) { final String keyword = element.getText(); if (!excludedKeywords.contains(keyword) || element.getParent() instanceof PsiExpression) { GlobalCompilingVisitor.addFilesToSearchForGivenWord(keyword, true, CODE, myCompilingVisitor.getContext()); } } }