boolean (PsiVariable fromVariable, PsiType fromType, @NotNull List<? extends VariableData> inputVariables) { for (VariableData data : inputVariables) { if (data.variable == fromVariable) { return data.type != null && data.type.equalsToText(fromType.getCanonicalText()); } } return true; }