private static boolean isStillValid(PsiNewExpression newExpression) {
      final PsiMethod constructor = newExpression.resolveConstructor();
      if (constructor == null) return false;
      final PsiParameter[] parameters = constructor.getParameterList().getParameters();
      if (parameters.length == 0) return false;
      if (!PsiTypes.doubleType().equals(parameters[0].getType())) return false;
      return true;
    }
private static boolean isStillValid(PsiNewExpression newExpression)