VariableData[] () { final InputVariables inputVariables = getInputVariables(); List<VariableData> datas = new ArrayList<>(); for (VariableData data : inputVariables.getInputVariables()) { final PsiVariable variable = data.variable; if (variable instanceof PsiParameter && myTopEnclosingMethod.equals(((PsiParameter)variable).getDeclarationScope())) { continue; } datas.add(data); } return datas.toArray(new VariableData[0]); }