void (@NotNull PsiMethod method) { final MethodSignature methodSignature = method.getSignature(PsiSubstitutor.EMPTY); myUsageSimilarityFeaturesRecorder.addFeature(method.isConstructor() ? "CONSTRUCTOR: " : methodSignature.getName()); for (PsiType type : methodSignature.getParameterTypes()) { myUsageSimilarityFeaturesRecorder.addFeature("PARAMETER: " + type.getCanonicalText()); } PsiType returnType = method.getReturnType(); if (returnType != null) { myUsageSimilarityFeaturesRecorder.addFeature("RETURN_TYPE: " + returnType.getCanonicalText()); } if (!method.equals(myContext)) { super.visitMethod(method); } }