boolean (PsiElement element, @NotNull ActionContext context) { if (!context.selection().isEmpty()) { final List<PsiMethodCallExpression> list = PsiSelectionSearcher.searchElementsInSelection(context.file(), context.selection(), PsiMethodCallExpression.class, false); for (PsiMethodCallExpression methodCallExpression : list) { if (isSetGetMethodCall(methodCallExpression)) { return true; } } } return isSetGetMethodCall(element); }