boolean (PsiElement element) { if (element instanceof PsiParameter) { final PsiElement parent = element.getParent(); if (parent instanceof PsiParameterList && parent.getParent() instanceof PsiMethod && element.getLanguage() == JavaLanguage.INSTANCE) { return true; } } return false; }