boolean (PsiElement element) { // example code: "some string".length() must become ("some" + " string").length() return element != null && element.getParent() != null && element.getParent().getParent() != null && BasicJavaAstTreeUtil.is(element.getParent().getNode(), BASIC_LITERAL_EXPRESSION) && BasicJavaAstTreeUtil.is(element.getParent().getParent().getNode(), REFERENCE_EXPRESSION_SET); }